import service from '@/utils/request'

// @Tags Student_struct
// @Summary 创建Student_struct
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Student_struct true "创建Student_struct"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /student_mini/createStudent_struct [post]
export const createStudent_struct = (data) => {
  return service({
    url: '/student_mini/createStudent_struct',
    method: 'post',
    data
  })
}

// @Tags Student_struct
// @Summary 删除Student_struct
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Student_struct true "删除Student_struct"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /student_mini/deleteStudent_struct [delete]
export const deleteStudent_struct = (data) => {
  return service({
    url: '/student_mini/deleteStudent_struct',
    method: 'delete',
    data
  })
}

// @Tags Student_struct
// @Summary 删除Student_struct
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除Student_struct"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /student_mini/deleteStudent_struct [delete]
export const deleteStudent_structByIds = (data) => {
  return service({
    url: '/student_mini/deleteStudent_structByIds',
    method: 'delete',
    data
  })
}

// @Tags Student_struct
// @Summary 更新Student_struct
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Student_struct true "更新Student_struct"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /student_mini/updateStudent_struct [put]
export const updateStudent_struct = (data) => {
  return service({
    url: '/student_mini/updateStudent_struct',
    method: 'put',
    data
  })
}

// @Tags Student_struct
// @Summary 用id查询Student_struct
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.Student_struct true "用id查询Student_struct"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /student_mini/findStudent_struct [get]
export const findStudent_struct = (params) => {
  return service({
    url: '/student_mini/findStudent_struct',
    method: 'get',
    params
  })
}

// @Tags Student_struct
// @Summary 分页获取Student_struct列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取Student_struct列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /student_mini/getStudent_structList [get]
export const getStudent_structList = (params) => {
  return service({
    url: '/student_mini/getStudent_structList',
    method: 'get',
    params
  })
}
